package com.dymall.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dymall.user.domain.dto.req.RegisterReq;
import com.dymall.user.domain.dto.req.UserInfoResp;
import com.dymall.user.domain.dto.resp.RegisterResp;
import com.dymall.user.domain.dto.req.LoginReq;
import com.dymall.user.domain.po.User;
import com.dymall.user.domain.dto.resp.LoginResp;

public interface IUserService extends IService<User> {

    RegisterResp register(RegisterReq registerReq);

    LoginResp login(LoginReq loginReq);

    void deductMoney(String pw, Integer totalFee);

    Integer getBalanceByUserId(Long id);

    UserInfoResp getUserInfo(Long userId);
}
